package com.imti.mall.sale.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.sms.pojo.SmsHomeNewProduct;
import com.imti.mall.model.sms.pojo.SmsHomeRecommendSubject;
import com.imti.mall.sale.mapper.SmsHomeNewProductMapper;
import com.imti.mall.sale.mapper.SmsHomeRecommendSubjectMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

@Mapper
public interface SmsHomeRecommendSubjectDao extends BaseMapper<SmsHomeRecommendSubject> {

    /**
     * 查询首页专题推荐表
     */
    @SelectProvider(type= SmsHomeRecommendSubjectMapper.class,method = "findSmsHomeRecommendSubject")
    public List<SmsHomeRecommendSubject> findSmsHomeRecommendSubject (SmsHomeRecommendSubject smsHomeRecommendSubject);

    /**
     * 修改首页专题推荐表
     * @param smsHomeRecommendSubject
     * @return
     */
    @UpdateProvider(type= SmsHomeRecommendSubjectMapper.class,method = "updateSmsHomeRecommendSubject")
    public Integer updateSmsHomeRecommendSubject(SmsHomeRecommendSubject smsHomeRecommendSubject);
}
